Optimal. Leaf size=214 \[ \frac {2 a \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b c f (a-b)}-\frac {\sqrt {\frac {1}{\sec (e+f x)+1}} \sqrt {a+b \sec (e+f x)} E\left (\sin ^{-1}\left (\frac {\tan (e+f x)}{\sec (e+f x)+1}\right )|\frac {a-b}{a+b}\right )}{c f (a-b) \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (\sec (e+f x)+1)}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.36, antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {3976, 3832, 3968} \[ \frac {2 a \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b c f (a-b)}-\frac {\sqrt {\frac {1}{\sec (e+f x)+1}} \sqrt {a+b \sec (e+f x)} E\left (\sin ^{-1}\left (\frac {\tan (e+f x)}{\sec (e+f x)+1}\right )|\frac {a-b}{a+b}\right )}{c f (a-b) \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (\sec (e+f x)+1)}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3832
Rule 3968
Rule 3976
Rubi steps
\begin {align*} \int \frac {\sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)} (c+c \sec (e+f x))} \, dx &=\frac {a \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx}{(a-b) c}+\frac {c \int \frac {\sec (e+f x) \sqrt {a+b \sec (e+f x)}}{c+c \sec (e+f x)} \, dx}{-a c+b c}\\ &=\frac {2 a \sqrt {a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{(a-b) b c f}-\frac {E\left (\sin ^{-1}\left (\frac {\tan (e+f x)}{1+\sec (e+f x)}\right )|\frac {a-b}{a+b}\right ) \sqrt {\frac {1}{1+\sec (e+f x)}} \sqrt {a+b \sec (e+f x)}}{(a-b) c f \sqrt {\frac {a+b \sec (e+f x)}{(a+b) (1+\sec (e+f x))}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 5.31, size = 156, normalized size = 0.73 \[ \frac {4 \cos ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {\frac {a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \left ((a+b) E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )-2 a F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )\right )}{c f (b-a) \sqrt {\frac {\cos (e+f x)}{\cos (e+f x)+1}} (\cos (e+f x)+1)^2 \sqrt {a+b \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.88, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \sec \left (f x + e\right ) + a} \sec \left (f x + e\right )^{2}}{b c \sec \left (f x + e\right )^{2} + {\left (a + b\right )} c \sec \left (f x + e\right ) + a c}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (f x + e\right )^{2}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (c \sec \left (f x + e\right ) + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.90, size = 224, normalized size = 1.05 \[ \frac {\sqrt {\frac {b +a \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \left (1+\cos \left (f x +e \right )\right )^{2} \left (2 \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) a -a \EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right )-b \EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right )\right ) \left (-1+\cos \left (f x +e \right )\right )}{c f \left (b +a \cos \left (f x +e \right )\right ) \sin \left (f x +e \right )^{2} \left (a -b \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (f x + e\right )^{2}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (c \sec \left (f x + e\right ) + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\cos \left (e+f\,x\right )}^2\,\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {c}{\cos \left (e+f\,x\right )}\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\sec ^{2}{\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}} \sec {\left (e + f x \right )} + \sqrt {a + b \sec {\left (e + f x \right )}}}\, dx}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________